package outfox.smt.word;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;

import outfox.smt.word.splitter.SentenceSplitter;

public class Test {

	public static void main(String[] args) throws FileNotFoundException, IOException{
		XWPFDocument doc=new XWPFDocument(new FileInputStream("1.docx"));
		for(XWPFParagraph p:doc.getParagraphs()){
			String s=p.getText();
			List<String>result=SentenceSplitter.getInstance(LanguageType.English).sentenceSplit(s);
			for(String sen:result){
				System.out.println(sen);
			}
		}
	}
}